package com.cl.mybatis.learn.day24.dao;


import java.util.List;

import com.cl.mybatis.learn.day24.bean.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select({"<script>" +
            "" +
            "        select * from user where id in\n" +
            "        <foreach item=\"id\" index=\"index\" collection=\"list\" open=\"(\" separator=\",\" close=\")\">\n" +
            "            #{id}\n" +
            "        </foreach>\n" +
            "" +
            "</script>"})
    List<User> selectAll(List<Long> ids);


}
